package _11_整理题目._Spring基础原理._设计模式._01_策略模式._计算器;

public class Calculator {
    private Operation operation;

    public void setOperation(Operation operation) {
        this.operation = operation;
    }

    public int doOperation(int x, int y) {
        return this.operation.doOperation(x, y);
    }
}
